U E D R , A S I H C RSS

Full text search for "CPP_Study_2005_1/Basic Bus Simulation"

CPP_Study_2005_1/Basic Bus Simulation


Search BackLinks only
Display context of search results
Case-sensitive searching
  • BusSimulation/상협 . . . . 66 matches
         //BusSimulation.h
         class Bus {
          Bus();
         Bus::Bus()
         void Bus::IncreaseMinute(int t) //중요한 부분.. 시간이 증가하는 이벤트는 다른 데이터에 어떠한 영향을 끼치고 또다른
         class BusSimulation {
          double m_MeterPerMinute_Bus; //버스의 속도 m/m
          double m_KilloPerHour_Bus; //버스의 속도 Km/h
          int m_BusCapacity; //버스 한대에 탈 수 있는 최대 사람수
          Bus m_buses[10]; //10 대의 버스들이 운행된다.
          int m_busStation[10]; // 10개의 버스 정류장
          long m_waitingPeopleInBusStation[10]; //각 정류장에서 기다리는 사람수
          BusSimulation(); //각 값들을 초기화 해줌
          void CheckBusStation(); //각 버스 정류장에 버스가 도착했는지 체크
          void StationStopProcess(Bus &CheckedBus, int Station); //버스 정류장 버스가 도착했을 경우
         //BusSimulation.cpp
         #include "BusSimulation.h"
         BusSimulation::BusSimulation()
          m_KilloPerHour_Bus = 24; //버스 속도 24km/h
          m_MeterPerMinute_Bus = (m_KilloPerHour_Bus*1000)/60; //버스의 분당 속도 m/m
  • BusSimulation/태훈zyint . . . . 61 matches
         const int BusStationNo = 10; // 버스 정류장의 개수
         const int BusNo = 10; // 버스의 대수
          BusType bus[BusNo]; //버스
          long waitingPeopleInBusStation[BusStationNo] = {0,0,}; //각 정류장에서 기다리는 사람수
          int LastMovingBusIndex=-1; //마지막 움직이기 시작한 버스의 인덱스
          int LastMovingBusStartTime= -1 * MinuteOfInterval;
          for(i=0,j=0;i<=bus->BusLanelength();++i) {
          if(bus->BusStationPos(j)==i) {
          waitingPeopleInBusStation[j]+= timerate * (IncreasePerMinute_People/60.0);
          cout << waitingPeopleInBusStation[j] ;
          if(i<bus->BusLanelength()) cout << "-";
          gotoxy(1,BusNo+3);
          for(i=0;i<=bus->BusLanelength()+BusStationNo;++i ) cout<< "-";
          if(bus[LastMovingBusIndex+1].ismove()==false && LastMovingBusIndex+1 <= BusNo
          && Now - LastMovingBusStartTime >= MinuteOfInterval) {
          bus[LastMovingBusIndex+1].start();
          LastMovingBusStartTime=Now;
          LastMovingBusIndex++;
          for(i=0;i<BusNo;++i) {
          if(bus[i].isstation() != -1 ){ //버스 정류장일경우
  • CPP_Study_2005_1/BasicBusSimulation/남상협 . . . . 42 matches
         = CPP_Study_2005_1/BasicBusSimulation/남상협 =
         //Simulation.cpp
         #include "BusSimulation.h"
          BusSimulation busSimulation(fin);
          busSimulation.readBusData();
          busSimulation.readTimeInput(cin,cout);
          busSimulation.printResult(cout);
         //BusSimulation.h
         #ifndef _BUS_SIMULATION_H_
         #define _BUS_SIMULATION_H_
         #include "Bus.h"
         class BusSimulation {
          vector<Bus> m_buses;
          BusSimulation(ifstream &fin) : m_fin(fin) {}
          void readBusData();
         //BusSimulation.cpp
         #include "BusSimulation.h"
         void BusSimulation::readBusData()
          Bus bus(velocity,m_roundDistance);
          m_buses.push_back(bus);
  • BusSimulation . . . . 17 matches
         = BusSimulation =
          * Data Input - 시물레이션 데이터는 busData.txt 와 busStationData.txt 두 가지 로부터 받아들인다. 각 데이터의 값은 단계가 올라감에 따라서 추가되어간다.
          * busData.txt
          * busStationData.txt(시간_초)
          * busData.txt
          * busStationData.txt(시간_초, 정류장 너비, 정류장에서 대기하는 시간-처음 출발 할때는 정류장에서는 대기안함)
          * busData.txt
          * busStationData.txt(시간_초, 정류장 너비, 정류장에서 대기하는 시간-처음 출발 할때는 정류장에서는 대기안함, 출발하는 간격(분))
          * busData.txt
          * busStationData.txt(시간_초, 정류장 너비, 정류장에서 대기하는 시간-처음 출발 할때는 정류장에서는 대기안함, 출발하는 간격(분), 정류장에서 사람 수 증가 율(명/분), 버스에 탈 수 있는 사람 수 ,정류장에서 내리는 사람 수)
          * busData.txt
          * busStationData.txt(시간_초, 정류장 너비, 정류장에서 대기하는 시간-처음 출발 할때는 정류장에서는 대기안함, 출발하는 간격(분), 정류장에서 사람 수 증가 율(명/분), 버스에 탈 수 있는 사람 수 ,정류장에서 내리는 사람 수)
          * busData.txt
          * busStationData.txt(시간_초, 정류장 너비, 정류장에서 대기하는 시간-처음 출발 할때는 정류장에서는 대기안함, 출발하는 간격(분), 정류장에서 사람 수 증가 율(명/분), 버스에 탈 수 있는 사람 수 ,정류장에서 내리는 사람 수, 한사람이 버스에 타는데 걸리는 시간)
         || ["BusSimulation/상협"]["BusSimulation/상협(STL)"] ["BusSimulation/상협(STL)2"] || 상협 ||
         || ["BusSimulation/영동"] || 영동 ||
         || ["BusSimulation/태훈zyint"] || 태훈 ||
         || ["BusSimulation/영창"] || 영창 ||
         || ["BusSimulation/조현태"] || [조현태] ||
         Discrete Event Simulation이 되겠군요. 사람이 몇 명이 기다리느냐, 길 막힘 상태 등은 이산 확률 분포를 사용하면 될 것입니다. NoSmok:TheArtOfComputerProgramming 에서 NoSmok:DonaldKnuth 가 자기 학교 수학과 건물 엘레베이터를 몇 시간 관찰해서 데이타를 수집한 것과 비슷하게 학생들이 직접 84번, 85-1번 등의 버스를 타고 다니면서 자료 수집을 해서 그걸 시뮬레이션 실험하면 아주 많은 공부가 될 것입니다 -- 특히, 어떻게 실세계를 컴퓨터로 옮기느냐 등의 모델링 문제에 관해. 실제로 NoSmok:DonaldKnuth 는 TAOCP에서 이런 연습문제를 만들어 놨습니다. 제가 학부생 때 누군가 이런 숙제를 내줬다면 아마 한 두 계단(see also ["축적과변화"]) 올라설 계기가 되지 않았을까 하고 아쉬울 때가 있습니다. 이 문제에 드는 시간은 하루나 이틀 정도가 되겠지만 여기서 얻은 경험과 지혜는 십 년도 넘게 자신의 프로그래밍 인생에 도움이 될 것이라 믿어 의심치 않습니다. (팀으로 문제 해결을 하면 더 많은 공부가 되겠지요) see also ProgrammingPartyAfterwords 참고자료 --JuNe
  • BusSimulation/영동 . . . . 10 matches
         class Bus//시속 60km/h-->분속 1km/m으로 정함.
          int bus_loc;//버스의 위치
         void Bus::move(int x_min)
          bus_loc=bus_loc+x_min;//분당 1킬로를 가므로 x분 후의 위치는 x킬로 뒤
          bus_loc=bus_loc+30;
          if(30<bus_loc&&bus_loc<=60)
          bus_loc=bus_loc-2;
          else if(60<bus_loc&&bus_loc<=90)
          bus_loc=bus_loc-4;
          else if(90<bus_loc&&bus_loc<=120)
          bus_loc=bus_loc-6;
          else if(120<bus_loc&&bus_loc<=150)
          bus_loc=bus_loc-8;
          else if(150<bus_loc&&bus_loc<=180)
          bus_loc=bus_loc-10;
          else if(180<bus_loc&&bus_loc<=210)
          bus_loc=bus_loc-12;
          else if(240<bus_loc&&bus_loc<=270)
          bus_loc=bus_loc-14;
          else if(270<bus_loc&&bus_loc<=300)
  • CppStudy_2005_1/BasicBusSimulation . . . . 10 matches
         = CppStudy_2005_1/BasicBusSimulation =
         || 김태훈[zyint] || [CPP_Study_2005_1/Basic Bus Simulation/김태훈] ||
         || [상협] || [CPP_Study_2005_1/BasicBusSimulation/남상협] ||
          * [BusSimulation]
  • CppStudy_2002_1 . . . . 6 matches
         || 7.25 ||9.객체와 클래스(60page)|| ["BusSimulation"] ||
         || 두번째 주 || ["BusSimulation/영동"] ["BusSimulation/상협"]|| 영동 ||
  • Gof/Visitor . . . . 6 matches
          virtual void VisitBus (Bus*);
          virtual void VisitBus (Bus*);
          virtual void VisitBus (Bus*);
  • Gof/Composite . . . . 4 matches
         우리는 간단한 방법으로 Cabinet 나 Bus 와 같은 다른 equipment 컨테이너를 정의할 수 있다. 이로서 우리가 개인용 컴퓨터에 equipment들을 조립하기 위해 (꽤 간단하게) 필요로 하는 모든 것들이 주어졌다.
         Bus* bus = new Bus ("MCA Bus");
         bus->Add (new Card("16Mbs Token Ring"));
         chassis->Add (bus);
  • ProgrammingPartyAfterwords . . . . 4 matches
         다음으로는 요구사항에 대한 해설이 있었다. 당시의 문제는 http://no-smok.net/seminar/moin.cgi/ElevatorSimulation 에 가면 볼 수 있다.
          * NoSmok:StructureAndInterpretationOfComputerPrograms 에 나온 Event-Driven Simulation 방식의 회로 시뮬레이션 [http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-22.html#%_idx_3328 온라인텍스트]
          * Discrete-Event System Simulation : 이산 이벤트 시뮬레이션 쪽에 최고의 책으로 평가받는 베스트셀러. 어렵지도 않고, 매우 흥미로움. [http://165.194.100.2/cgi-bin/mcu240?LIBRCODE=ATSL&USERID=*&SYSDB=R&BIBNO=0000351634 도서관]에 있음
          * Seminar:ElevatorSimulation 문제, 일반적인 discrete event simulation 패턴 소개 등
  • 0PlayerProject/커널업로드작업정리 . . . . 2 matches
          * BusyBox를 인스톨해서 모든 명령어를 BusyBox로 링크함.
  • BusSimulation/조현태 . . . . 2 matches
         #include "bus_and_man.h"
          === bus_and_man.cpp ===
         #include "bus_and_man.h"
         void bus::move(road *in_road)
         void bus::stop(station *in_station, road* in_road)
         bus::bus(int input_number, int input_size, int input_where, int input_speed)
          bus_size=input_size;
          humans=new man*[bus_size];
          for (register int i=0; i<bus_size; ++i)
         bus::~bus()
          for (register int i=0; i<bus_size; ++i)
         void bus::act(station* in_station, road* in_road)
          cars=new bus*[road_long];
          cars[input_where]=new bus(input_number,input_size,input_where, input_speed);
          === bus_and_man.h ===
         class bus;
         class bus{
          int bus_size;
          bus(int , int , int , int );
          ~bus();
  • CPPStudy_2005_1 . . . . 2 matches
         || 8/15 || - || Chapter10 || chpaper 10장 스터디 || STL과제->클래스화 and [CppStudy_2005_1/BasicBusSimulation] ||
  • Gnutella-MoreFree . . . . 2 matches
         Item.Busy = Busy;
  • Yggdrasil . . . . 2 matches
          * ["BusSimulation/영동"] <--솔직히 시뮬레이션이라고 부르기도 민망한 것[[BR]]
  • 데블스캠프2002 . . . . 2 matches
          1. ["BusSimulation"] - 오늘 제가 교양 숙제로 한거. 엘레베이터 시물레이션과 약간 유사한거 같기도함 - ["상협"]
  • 1002/Journal . . . . 1 match
          * SE 시간에 CBD (CBD & Business 라는 측면. 3강 연속) 를 배울때마다 느끼는 점이 있다면, 다른 공학 (기계, 전자, 건축) 들의 개념들을 이용하여 Software 를 Hardware 화 시킨다는 느낌이 든다. 늘 '표준' 을 강조하시는 교수님. 컴포넌트쪽과 QA쪽에서 그 이름이 빠질 수 없는 교수님이시기에, 그리고 평소 수업때 자신의 나이만큼 연륜있으신 말씀을 하시기에 마음이 흔들리지 않을 수 없고, 결국 '톱니바퀴들 중 하나'라는 생각을 하고 나면 약간 한스럽다. 그래서 교수님께서는 늘 'Domain Expert' & 'Speciality' 를 강조하시지만.
  • Gof/Mediator . . . . 1 match
         예컨대, Seminar:ElevatorSimulation 에 여러가지 배우(엘레베이터, 사람, 층, ...)들이 존재할 경우, 사람은 층을 참조, 사용하고, 층은 다시 갖고 있는 사람을 참조하고, 엘레베이터는 사람을 참조, 사용하고 하는 식으로 복잡한 (순환) 의존관계가 존재한다. 이럴 때 MediatorPattern을 쓰게되면 이 복잡한 의존고리를 끊을 수 있다.
  • InvestMulti - 09.22 . . . . 1 match
          print '2. My business '
          Business()
          print '2. My business '
          m.business()
          def business(self):
          print '2. My business '
          m.business()
          def business(self):
  • MFCStudy_2002_1 . . . . 1 match
         || 8/16(금) || 오목 구현 끝. 상속 이해. OOP(CRC), Simulation || . ||
  • OperatingSystemClass . . . . 1 match
          * http://cne.gmu.edu/workbenches/pcsem/Semaphore.html - Producer / Consumer Simulation Applet
  • ProjectVirush/ZoneData . . . . 1 match
         14 부산 Busan 3662884 3662884 0
  • WOWAddOn/2011년프로젝트/초성퀴즈 . . . . 1 match
         Coroutine이 다른 쓰레드를 하는건가? 이상하다. Busy Wait로 만든 Sleep을 해서 하는건데 Thread해서 다른 타이밍에 나오는것 같지가 않다???
  • 임시 . . . . 1 match
         Business & Investing: 3
  • 책거꾸로읽기 . . . . 1 match
         얼마 전부터 글로벌 기업들은 과거 자기네 땅에서 자기나라 사람들을 고용해 처리하던 고객관리며 회계, 물류 같은 이른바 백 오피스(Back Office)업무를 인도에 넘겨주고 있다. 주된 이유는 비용을 절감하기 위해서다. BPO(Business Process Outsourcing)산업이 번성하면서 인도는 '''세계의 사무실'''이라는 별명까기 얻게 됐다. 인도에서 BPO산업이 숙성한 이유는 여러가지다. 먼저 영어가 되는 직원들을 쉽게 구할 수 있고, IT산업이 발달해 멀리 떨어진 본국 기업과도 불편 없이 일할 수 있다는 장점이 있다. 재밌는 건 여기에 절묘한 '''황금분할'''이론도 숨어 있다는 사실이다. 미국동부와 인도는 딱 12시간의 시차가 있다. 미국인들은 잠을 잘 때 인도인들은 일을 할 수 있다는 예기이다. 적은 비용을 들여서 쉬지 않는 24시간 업무 체제를 가동시키는 셈이다. 하지만 요즘 미국인들의 '''인도인들이 일자리를 빼았는다'''는 불만으로 정치적 문제로 비화되기까지 이르었다.
  • 허아영 . . . . 1 match
         FORTUNE 50 Most Powerful Women in Business 에 실리는 것!!!
Found 26 matching pages out of 7544 total pages (5000 pages are searched)

You can also click here to search title.

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
Processing time 1.3667 sec